package com.yxym.homework04;

public class Worker extends Employee{
    public Worker(String name, double basicSalary, double grade) {
        super(name, basicSalary, grade);
    }

    @Override//重写父类方法printSalary
    public void printSalary() {
        System.out.print("工人");
        super.printSalary();
    }
}
